<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <!-- 必须引入的文件-->
    <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>

    <script src="/commonScripts/jquery-1.5.1.min.js"></script>

    <!-- sha1加密js文件-->
    <script src="/commonScripts/wxShare_sha1.js"></script>

    <!-- 组装微信配置信息js文件-->
    <script src="/commonScripts/wxShare_data.js"></script>

    <!-- 微信分享时调用对应的接口js文件-->
    <script src="/commonScripts/wxShare.js"></script>

</head>

<body id="weixinshare">
微信分享开发
<img style="width:672px; height:345px; cursor:pointer" alt="banner01" src="/mobileimg/123.jpg">
</body>
<script>
    $.post(url, param, function(result) {
        console.log(result)
        //var roll_div  = '';
        if (result.status == 1) {
            var roll_div = '';
            var staff_str = '';
            //公告轮播
            $.each(result.info.carouse, function(n, value) {
                if (value.notice_type == 6) {
                    if (value.thumb != '') {
                        portrait = "Swiper动态更新重新加载片段重新初始化swiper
                        src = '"+value.thumb+"'
                        width = '25'
                        height = '25' > "
                    } else {
                        portrait = "Swiper动态更新重新加载片段重新初始化swiper

                        src = '"+url_public.public+' / img / tx_logo.png ' +"'
                        width = '25'
                        height = '25' > ";
                    }
                    staff_str = value.username + ' ' + portrait

                        +
                        '   ' + value.notice_title //员工姓名+头像+标题
                } else {
                    staff_str = value.notice_type_name

                        +
                        '   ' + value.notice_title + '   ' + value.username //公告类型+标题+发布人
                }
                roll_div += "
                "+staff_str+"
                ";
            })
            $("#notice_roll").html(roll_div); //滚动
        }
        if (isnew == 1) {
            if (roll_div != '') {
                //$('.swiper-container > .swiper-wrapper','body').html(roll_div);
                $("#notice_roll").html(roll_div); //滚动
                mySwiper = new Swiper('.swiper-container', {
                    autoplay: 1000,
                    speed: 1200,
                    loop: true,
                });
                isnew = 0;
            }
        } else {
            mySwiper.stopAutoplay();
            mySwiper.removeAllSlides();
            if (roll_div != '') {
                mySwiper.appendSlide(roll_div);
                mySwiper.startAutoplay();
            }
        }
    })
</script>

</html>